/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.weathersubsystem;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Francesco
 */
public class WeatherData implements Serializable 
{

    // Instance Fields
    
    /***/
    private final String location ;
    
    /***/
    private final Date iniDate ;
    
    /***/
    private final Date endDate ;
    
    /***/
    private final int temperature ;
   
    /***/
    private final String description ;

    // Instance Methods
    
    /**
     * @param location 
     * @param iniDate
     * @param endDate
     * @param temperature 
     * @param description 
     * @throws IllegalArgumentException
     */
    public WeatherData ( String location , Date iniDate , Date endDate , int temperature , String description ) 
    {
        if ( location != null )
        {
            this.location = location ;
            this.iniDate = iniDate ;
            this.endDate = endDate ;
            this.temperature = temperature ;
            this.description = description ;
        }
        else
            throw new IllegalArgumentException () ;
    }
    
    /**
     * @return the location
     */
    public String getLocation () 
    {
        return location;
    }

    /**
     * @return the iniDate
     */
    public Date getIniDate () 
    {
        return iniDate;
    }

    /**
     * @return the endDat
     */
    public Date getEndDate () 
    {
        return endDate ;
    }
    
    /**
     * @return the maxT
     */
    public int getTemeperature () 
    {
        return temperature ;
    }

    /**
     * @return the description
     */
    public String getDescription () 
    {
        return description;
    }
    
}
